package com.lbb.springboot.scheduler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 定时器
 *
 * @author jy
 */
@Configuration
public class LockerScheduler {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());


    /**
     * 每天定时判断合同与租赁柜状态,是否激活与过期：每天凌晨00:00:01
     */
    @Scheduled(cron = "0 * * * * *")
    public void createInterviewTask() {
        logger.info("租赁合约任务定时器开始");
    }
}
